package com.account;

public class Thread2 implements Runnable{
	 private Account account;
	    private double depositBalance;
	 
	    public Account getAccount() {
	        return account;
	    }
	 
	    public void setAccount(Account account) {
	        this.account = account;
	    }
	 
	    public double getDepositBalance() {
	        return depositBalance;
	    }
	 
	    public void setDepositBalance(double depositBalance) {
	        this.depositBalance = depositBalance;
	    }
	 
	    @Override
	    public void run() {
	        for (int i = 0; i < 100; i++) {
	            account.deposit(depositBalance);
	        }
	    }
}
